package com.luckcoder.relax.games.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.luckcoder.relax.games.domain.RelaxUserGameRecord;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 用户游戏记录视图对象 relax_user_game_record
 *
 * @author zhanghao
 * @date 2025-09-10
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = RelaxUserGameRecord.class)
public class RelaxUserGameRecordVo implements Serializable {
    
    @Serial
    private static final long serialVersionUID = 1L;
    
    /**
     * 记录ID
     */
    @ExcelProperty(value = "记录ID")
    private Long recordId;
    
    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;
    
    /**
     * 游戏ID
     */
    @ExcelProperty(value = "游戏ID")
    private Long gameId;
    
    /**
     * 游戏编码
     */
    @ExcelProperty(value = "游戏编码")
    private String gameCode;
    
    /**
     * 游戏得分
     */
    @ExcelProperty(value = "游戏得分")
    private Long score;
    
    /**
     * 游戏时长（秒）
     */
    @ExcelProperty(value = "游戏时长", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "秒=")
    private Long playTime;
    
    /**
     * 游戏级别/难度
     */
    @ExcelProperty(value = "游戏级别/难度")
    private Long gameLevel;
    
    /**
     * 游戏模式（normal普通、infinite无限、challenge挑战）
     */
    @ExcelProperty(value = "游戏模式", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "n=ormal普通、infinite无限、challenge挑战")
    private String gameMode;
    
    /**
     * 游戏结果（completed完成、timeout超时、quit退出）
     */
    @ExcelProperty(value = "游戏结果", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "c=ompleted完成、timeout超时、quit退出")
    private String gameResult;
    
    /**
     * 消灭数量（适用于消灭类游戏）
     */
    @ExcelProperty(value = "消灭数量", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "适=用于消灭类游戏")
    private Long eliminatedCount;
    
    /**
     * 额外游戏数据（JSON格式）
     */
    @ExcelProperty(value = "额外游戏数据", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "J=SON格式")
    private String extraData;
    
    /**
     * 游戏日期
     */
    @ExcelProperty(value = "游戏日期")
    private Date playDate;
    
    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;
    
    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    private Date updateTime;
    
    
}
